From c7c31a415170689fd547d45486cecccefd5de3bf Mon Sep 17 00:00:00 2001 From: Mohamed Abdulla Date: Mon, 23 Mar 2026 23:57:22 +0300 Subject: [PATCH] iconGrid: Exclude Lower Out of Bound in IconGridLayout getDropTarget() Exclude negative page values as well. They are possible in case of dropping on the left-side of an app folder. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7700 Part-of: --- js/ui/iconGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index a67a1ee64..e87225c84 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -1042,7 +1042,7 @@ export const IconGridLayout = GObject.registerClass({ : Math.floor(x / this._pageWidth); // Out of bounds - if (page >= this._pages.length) + if (page < 0 || page >= this._pages.length) return [0, 0, DragLocation.INVALID]; if (isRtl && this._orientation === Clutter.Orientation.HORIZONTAL) -- 2.39.5